/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.mahumLogs.backedbeans;

import java.io.IOException;
import java.io.Serializable;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.context.FacesContext;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Edouard
 */
@Entity
public class Configuration implements Serializable{
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int idConfiguration;
    
    @Column(unique = true)
    private String cle;
    private String valeur;
    private String type;
    private String help;
    private boolean modifiable;

    /**
     * Constructeur vide
     */
    public Configuration() {
        
    }

    public String getHelp() {
        return help;
    }

    public boolean isModifiable() {
        return modifiable;
    }

    public void setModifiable(boolean modifiable) {
        this.modifiable = modifiable;
    }

    public void setHelp(String help) {
        this.help = help;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    
    /**
     * @return idConfiguration
     */
    public int getIdConfiguration() {
        return idConfiguration;
    }

    /**
     * @param idConfiguration 
     */
    public void setIdConfiguration(int idConfiguration) {
        this.idConfiguration = idConfiguration;
    }

    /**
     * @return cle
     */
    public String getCle() {
        return cle;
    }

    /**
     * @param cle 
     */
    public void setCle(String cle) {
        this.cle = cle;
    }

    /**
     * @return valeur
     */
    public String getValeur() {
        return valeur;
    }

    /**
     * @param valeur 
     */
    public void setValeur(String valeur) {
        this.valeur = valeur;
    }
}
